
<%@ page contentType="text/html;charset=UTF-8" language="java" %><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <title>下单</title>
    <c:set var="path" value="${pageContext.request.contextPath}"></c:set>
    <style>
        .kehu{
            margin-left: 50px;
        }
        .hang div{
            float: left;
            margin-top: 10px;
        }
        .hang div input{
            border: none;
        }
    </style>
</head>
<body>
    <div class="kehu">
        <div class="hang">
            <div>客户姓名：<input type="text" id="a"></div>
            <div>客户类型：<input type="text" id="b"></div>
            <div style="margin-bottom: 10px">客户状态：<input type="text" id="c"></div>
            <div style="margin-bottom: 10px">联系电话：<input type="text" id="d"></div>
            <input type="hidden" id="khid1">
        </div>
    </div>
    <hr>
    <p style="margin-left: 20px">可选购商品信息列表</p>
    <div class="layui-fluid">
        <table id="shoppTable" lay-filter="shoppTable"></table>
    </div>

    <script>
        layui.use(["table","form"],function () {
            var table=layui.table;
            //渲染表格
            table.render({
                elem:"#shoppTable",
                url:"${path}/Shopping/list",
                page:true,
                cols:[[
                    {type:'checkbox'},
                    {field:'id',title:'编号'},
                    {field:'name',title:'名称'},
                    {field:'price',title:'价格'},
                    {edit:'text',value:1,field:'num',title:'数量'},
                    // {field:'totalnum',title:'库存'}

                ]]
            })



        })
    </script>

</body>
</html>
